#!/bin/bash
read -p "请输入一个整数" num
result=1
for i in `seq $num`
do
  result = $[$result * $i]
  done
  echo "$num的阶乘为$result"
